﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net.Mail;
using System.Text;

public partial class Test_TestSendMail : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        MailMessage message = new MailMessage(); 
        message.From = new MailAddress("Jose Carlos Gutierrez <joseco@cscristianos.com>"); 
        message.To.Add("joseco48@hotmail.com");
        message.Body = "<html><body><strong>Hola Mundo !!</strong></body></html>";
        message.BodyEncoding = Encoding.UTF8;
        message.IsBodyHtml = true;

        SmtpClient client = new SmtpClient();         
        client.EnableSsl = false;             
        client.Send(message); 
    }
}